package one.stand.service;

import com.jmp.base.dto.CardSaveRequest;
import one.stand.model.BusinessCard;
import one.stand.model.ResultModel;
import one.stand.request.BusinessCardRequest;

/**
 * @author Administrator
 */
public interface BusinessCardService {

    /**
     * 加入企业审核状态0带审核，1审核通过，2拒绝
     */
    int AUDIT_STATE_NORMAL = 0;
    int AUDIT_STATE_AGREE = 1;
    int AUDIT_STATE_REFUSE = 2;

    /**
     * 创建名片
     */
    void createCard(CardSaveRequest request);

    void remove(Integer cardId);

    int removeByCompanyId(Integer companyId);

    /**
     * 修改名片
     */
    ResultModel<Boolean> updateCard(BusinessCardRequest request);

    void updateCardWxcode(Integer cardId, String wxCode);

    /**
     * 更新名片完善率
     */
    void updatePerfectRate(Integer cardId);

    /**
     * 查询用户自己的名片
     */
    ResultModel getUserCard(BusinessCardRequest request);

    BusinessCard getByUserId(Integer userId);

    BusinessCard get(Integer cardId);
}

